import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import UI from './views/UI.vue'
import About from './views/About.vue'
import Contacts from './views/Contacts.vue'
import Bob from './views/Contacts/Bob.vue'
import Alice from './views/Contacts/Alice.vue'
import All_contacts from './views/Contacts/All_contacts.vue'
import blog from './views/Contacts/Bob/blog.vue'
import fax from './views/Contacts/Bob/fax.vue'


import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
    { path: '/', redirect: '/ui' },
    { path: '/ui', component: UI },
    { path: '/about', component: About },
    {
        path: '/contacts',
        component: Contacts,
        children: [{
                path: 'Bob',
                component: Bob,
                children: [
                    { path: 'blog', component: blog },
                    { path: 'fax', component: fax },
                ]
            },
            { path: 'Alice', component: Alice },
            { path: 'All_contacts', component: All_contacts }
        ]
    },
]
const router = new VueRouter({ routes, mode: "history" })


new Vue({
    render: h => h(App),
    router
}).$mount('#app')